package com.example.springbootmybatisinjector;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//配置Mapper接口类扫描
@MapperScan("com.example.springbootmybatisinjector")
//配置Spring Bean注解扫描
@ComponentScan(basePackages = "com.example.springbootmybatisinjector")
public class SpringbootMybatisInjectorApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisInjectorApplication.class, args);
    }

}
